package sunsun.xiaoli.jiarebang.beans;

import android.support.annotation.NonNull;

public class PeriodNickName implements Comparable<PeriodNickName>{
    private int key;//昵称对应的id
    private String value;//昵称
    public PeriodNickName(int key,String value){
        setKey(key);
        setValue(value);
    }
    public int getKey() {
        return key;
    }

    public void setKey(int key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public int compareTo(@NonNull PeriodNickName periodNickName) {
        return Integer.valueOf(key).compareTo(Integer.valueOf(periodNickName.getKey()));
    }
}
